import { api_way } from './config';
import Server from './request'

// 请求方式
export function requset(methods, url, params) {
    switch (methods) {
        case api_way.GET:
            return Server.get(url, params);
        case api_way.POST:
            return Server.post(url, params)
        case api_way.DELETE:
            return Server.delete(url, params)
        case api_way.PUT:
            return Server.put(url, params)
    }
}
